package adapterPackage;

import java.util.ArrayList;
import java.util.List;

import systemPackage.MainSystem;
import dataTypesPackage.Gemi;


public class GemiAdapter {
	public static List<Gemi> getAllGemi(){
		List<Object> objectList = MainSystem.getAll(Gemi.class);
		//as all getAll functions, we have to cast to according class
		List<Gemi> gemiList = new ArrayList<Gemi>();
		for(Object temp:objectList){
			gemiList.add((Gemi)temp);
		}
		return gemiList;
	}
}
